Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not load fonts for the UI from the internet #96

Merged
merged 6 commits into from
May 2, 2018

Conversation

trevj
Copy link
Contributor

@trevj trevj commented Apr 13, 2018

Addresses:
#67 (comment)

From eyeballing it on my macOS laptop, the app looks identical before and after this change.

Copy link
Contributor

@alalamav alalamav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

bannerDiv.innerHTML = `
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<link href="outline://web_app/bower_components/font-roboto/roboto.html" rel="stylesheet">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that an html include is being used instead of a CSS stylesheet, I think this should be rel="import" and not rel="stylesheet"? Maybe the webview does the right thing anyway, but still seems worth changing?

Copy link
Contributor Author

@trevj trevj Apr 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Changed to import.

Copy link
Contributor

@alalamav alalamav Apr 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the change to import didn't make it through?

@trevj trevj force-pushed the trevj-font-roboto-local branch from e0be684 to b527dd0 Compare April 16, 2018 20:04
@trevj
Copy link
Contributor Author

trevj commented Apr 16, 2018

@alalamav PTAL, I tested (better) and replaced the logo with an SVG supplied by UX.

Copy link
Contributor

@alalamav alalamav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

bannerDiv.innerHTML = `
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<link href="outline://web_app/bower_components/font-roboto/roboto.html" rel="stylesheet">
Copy link
Contributor

@alalamav alalamav Apr 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the change to import didn't make it through?

@trevj
Copy link
Contributor Author

trevj commented Apr 17, 2018

@alalamav Apologies, all changes now pushed.

@trevj trevj changed the title use font-roboto-local do not load fonts for the UI from the internet May 2, 2018
@trevj trevj merged commit 3d35afe into master May 2, 2018
@trevj trevj deleted the trevj-font-roboto-local branch May 7, 2018 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants